import request from '@/axios';
import { baseUrl } from '@/config/env';

// 订单中心-其他信息-售后原因-添加原因
export const afterSalesReasonsAdd = (data) => request({
    url: baseUrl + '/merchantCenter/afterSalesReasons/add',
    method: 'post',
    data
})
// 订单中心-其他信息-售后原因-原因列表
export const afterSalesReasonsList = (data) => request({
    url: baseUrl + '/merchantCenter/afterSalesReasons/list',
    method: 'post',
    data
})
// 订单中心-其他信息-售后原因-编辑原因
export const afterSalesReasonsUpdate = (data) => request({
    url: baseUrl + '/merchantCenter/afterSalesReasons/update',
    method: 'post',
    data
})
// 订单中心-其他信息-售后原因-删除原因
export const afterSalesReasonsDelete = (id) => request({
    url: baseUrl + `/merchantCenter/afterSalesReasons/delete/${id}`,
    method: 'get'
});


// 订单中心-其他信息-订单设置-回显
export const orderSettingsSelect = () => request({
    url: baseUrl + `/merchantCenter/orderSettings/select`,
    method: 'get'
});
// 订单中心-其他信息-订单设置-回显
export const orderSettingsPperation = (data) => request({
    url: baseUrl + `/merchantCenter/orderSettings/operation`,
    method: 'post',
    data
});